<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FuseKit2.1: class com.mosesSupposes.fuse.Raccourcis (Shortcuts)
</title><link type="text/css" rel="stylesheet" href="../../../as2doc.css"></head>
<body framespacing="0" topmargin="6" leftmargin="6" marginheight="6" marginwidth="6">
<div class="docindex"><a href="../../../index-right.html" class="head">Page Principale</a> | <a href="../../../com/mosesSupposes/fuse/package-summary.html" class="head" target="classFrame">Package</a> | <a href="../../../index-all.html" class="head">Index</a> | <a href="../../../help-doc.html" class="head">Aide</a></div>
<table border="0" cellpadding="0" cellspacing="4" width="100%" class="subnavigation"> <tr> <td><a href="PennerEasing.html">Pr&eacute;c&eacute;dent</a> | <a href="ZigoEngine.html">Suivant</a></td> <td><a href="../../../index.html" target="_top">Frames (Montrer la navigation)</a> | <a href="Shortcuts.html" target="_top">Sans Frames</a></td> </tr> <tr> <td>Sommaire: Champs | Propri&eacute;t&eacute;s | Constructeur | M&eacute;thode</td> <td>D&eacute;tail: Champs | Propri&eacute;t&eacute;s | Constructeur | M&eacute;thode
</td> </tr>
</table>
<hr size="1"><span class="packagename">com.mosesSupposes.</span><span class="packagename">fuse</span><br>
<h2>class Shortcuts</h2>
<p></p>
<pre class="code">Object
  |
  +--<b>com.mosesSupposes.</b><b>fuse.</b><b>Shortcuts
</b> </pre>
<br>
<hr size="1">class <b>Shortcuts</b> <br>extends Object
 <p></p>Passez cette classe en param&egrave;tre &agrave;<a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#register">ZigoEngine.register</a>ou <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#simpleSetup">ZigoEngine.simpleSetup</a> mettre en marche les fonctionnalit&eacute;s raccourcis de tween ainsi que l''easyfunc' callback parsing.
<p></p>
<dl compact> <dt><b>Utilisation:</b> </dt> <dd> <div class="comment">Exemple 1: Vous pouvez utiliser la syntaxe de raccourci (shortcut) sans modifier les prototypes ni les cibles. <pre>import com.mosesSupposes.fuse.*;
import mx.transitions.easing.Elastic;
ZigoEngine.register(Shortcuts);
 
ZigoEngine.doShortcut(my_mc, 'brightOffsetTo', 100, 1, Elastic.easeOut); </pre> <br>Exemple 2: Vous pouvez copier copier et retirer les m&eacute;thodes de shortcut pour chaque cible sans modifier les prototypes. <pre>import com.mosesSupposes.fuse.*;
import mx.transitions.easing.Elastic;
ZigoEngine.register(Shortcuts);
 
ZigoEngine.initialize(my_mc);
my_mc.brightOffsetTo(200, 1, Elastic.easeOut);
//plus tard...
ZigoEngine.deinitialize(my_mc); </pre> <br>Exemple 3: Utilisez simpleSetup au lieu de register pour modifier les prototypes &agrave; la fa&ccedil;on ancienne de lmc_tween. Remember that any setup command only needs to be called once at the beginning of your program. <pre>import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts, PennerEasing);
 
my_mc.brightOffsetTo(200, 1, 'easeOutElastic');
 
// si vous passez aussi FuseItem pendant le simpleSetup,
//vous pourrez utiliser la syntaxe objet (Object Syntax) avec les raccourcis de tweens:
my_mc.tween({ start_x:"-100", start_y:"-100", ease:"easeInOutBack", time:1.5 });
 </pre> <br>Shortcut methods are variations on <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">ZigoEngine.doTween</a> syntax and return a formatted string indicating properties successfully tweened. In each method listed below <code>target</code> refers to whatever MovieClip or TextField you wish to tween. <br> <br> <br> <h3>Shortcut Properties: </h3>If you've extended prototypes with <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#simpleSetup">ZigoEngine.simpleSetup</a>, you may use these the same as normal properties like <code>_x</code>: <pre><b>my_mc.</b><b>_brightness</b> = 50;</pre> <br> <ul> <li><b><code>_brightness</code></b> (See brightnessTo)</li> <li><b><code>_brightOffset</code></b> (See brightOffsetTo)</li> <li><b><code>_colorReset</code></b> (See colorResetTo)</li> <li><b><code>_colorTransform</code></b> Accepts or returns a generic color-transform object with properties like ra, rb, etc. (See colorTransformTo)</li> <li><b><code>_contrast</code></b> (See contrastTo)</li> <li><b><code>_fade</code></b> A proxy for _alpha that sets _visible false for any value less than 50, typically used with 0 or 100 values.</li> <li><b><code>_frame</code></b> Sets or retrieves the current frame of a MovieClip's timeline.</li> <li><b><code>_invertColor</code></b> (See invertColorTo)</li> <li><b><code>_scale</code></b> Sets _xscale and _yscale to the same value.</li> <li><b><code>_size</code></b> Sets _width and _height to the same value.</li> <li><b><code>_tint</code></b> Accepts 0x000000 or "#000000" formats. Returns a color-value number.</li> <li><b><code>_tintPercent</code></b> Sets or retrieves the tint percentage of a target that has had its color altered previously.</li> <li><b><code>_tintString</code></b> Like _tint, but returns a human-readable hex-string like "0xFF33FF" easily converted to a usable color value using <code>Number()</code>.</li> </ul> <h3>Property-Tweening Shortcut Methods:</h3> <pre>target.<b>alphaTo</b> (alpha:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens <code>_alpha</code>. Supports relative (string) end-value. <pre>target.<b>bezierTo</b> (x:Object, y:Object, controlX:Object, controlY:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Generates a simple curved path. Supports relative (string) values; use <code>"0"</code> for <code>x</code> or <code>y</code> to affect no change, use <code>null</code> for <code>controlX</code> or <code>controlY</code> to auto-center the control point. In this way a curve can be generated with only two values, like this arc that hops up-then-down while sliding right: <code>my_mc.bezierTo("200","0",null,"-50");</code> <pre>target.<b>fadeIn</b> (seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Automatically sets the target's <code>_visible</code> property to true, then tweens <code>_alpha</code> to 100. <pre>target.<b>fadeOut</b> (seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens <code>_alpha</code> to 0 then automatically sets the target's <code>_visible</code> property to false. <pre>target.<b>frameTo</b> (frame:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>MovieClip only: tweens the clip's timeline to the desired frame. <pre>target.<b>rotateTo</b> (rotation:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens <code>_rotation</code>. Supports relative (string) end-value, such as this counter-clockwise rotation: <code>my_mc.rotateTo("-90");</code> <pre>target.<b>scaleTo</b> (scale:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens <code>_xscale</code> and <code>_yscale</code> to the same value. Supports relative (string) end-value. <pre>target.<b>sizeTo</b> (size:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens <code>_width</code> and <code>_height</code> to the same value. Supports relative (string) end-value. <pre>target.<b>slideTo</b> (x:Object, y:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens <code>_x</code> and <code>_y</code>. Supports relative (string) values; use <code>"0"</code> or <code>null</code> to affect no change for either coordinate. <br> <br> <br> <h3>Color-Tweening Shortcut Methods:</h3> <pre>target.<b>brightnessTo</b> (brightness:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens brightness between -100 (black), 0 (normal) and 100 (white) <pre>target.<b>brightOffsetTo</b> (brightOffset:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens a burn effect between -100 (black), 0 (normal) and 100 (white) <pre>target.<b>colorTo</b> (rgb:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens a clip's color. Accepts 0x000000 or "#000000" formats. <pre>target.<b>colorResetTo</b> (percent:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Use 100 to fully restore a target's colors to normal. (For most color effects a positive number less than 100 can be passed to affect a partial change.)<br> <pre>target.<b>colorTransformTo</b> (ra:Object, rb:Object, ga:Object, gb:Object, ba:Object, bb:Object, aa:Object, ab:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens specific properties of a color-transform. Supports relative (string) values or pass <code>null</code> to affect no change on that property. The "a" values are percentages while "b" values are -255 to 255 offsets. <pre>target.<b>contrastTo</b> (level:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens photo contrast between 0 (gray), 100 (normal), or higher (200 for extreme contrast, higher to posterize image). Supports relative (string) end-value. <pre>target.<b>invertColorTo</b> (percent:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Photo-negative effect from 0-100. Supports relative (string) end-value. <pre>target.<b>tintTo</b> (rgb:Object, percent:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Similar to <code>colorTo</code>, with a tint-percentage value in the second parameter. Supports relative (string) end-value for percentage. <pre>target.<b>tintPercentTo</b> (percent:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String </pre>Tweens the tint percentage of a target that has had its color altered previously. Supports relative (string) end-value. <br> <br> <br> <h3>Tween Control Methods: </h3>(see similar methods in <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html">ZigoEngine</a> for additional info.) <pre>target.<b>tween</b> (props:Object, endVals:Object, seconds:Number, ease:Object, delay:Number, callback:Object):String</pre> <pre>target.<b>removeTween</b> (props:Object):Void</pre> <pre>target.<b>removeAllTweens </b>():Void</pre> <pre>target.<b>isTweening </b>(prop:String):Boolean</pre> <pre>target.<b>getTweens</b>():Number</pre> <pre>target.<b>lockTween</b>():Void</pre> <pre>target.<b>unlockTween</b>():Void</pre> <pre>target.<b>isTweenLocked</b>():Boolean</pre> <pre>target.<b>isTweenPaused</b>(prop:String):Boolean</pre> <pre>target.<b>pauseTween </b>(props:Object):Void</pre> <pre>target.<b>resumeTween </b>(props:Object):Void</pre> <pre>target.<b>pauseAllTweens </b>():Void</pre> <pre>target.<b>resumeAllTweens </b>():Void</pre> <pre>target.<b>ffTween </b>(props:Object):Void</pre> <pre>target.<b>rewTween </b>(props:Object,suppressStartEvents:Boolean):Void</pre> <pre>target.<b>rewAndPauseTween </b>(props:Object,suppressStartEvents:Boolean):Void</pre> <pre>target.<b>skipTweenTo </b>(second:Number,props:Object):Void</pre> <br> <br> <h3>Legacy Methods: </h3>(retained for compatibility with earlier versions) <pre>target.<b>stopTween </b>(props:Object):Void</pre> <pre>target.<b>stopAllTweens </b>():Void</pre> <pre>target.<b>unpauseTween </b>(props:Object):Void</pre> <pre>target.<b>unpauseAllTweens </b>():Void</pre> <br> <br> <h3>FuseFMP tweening shortcuts </h3>For use with FuseFMP and <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#simpleSetup">ZigoEngine.simpleSetup</a> (prototype extension) only. The format follows the convention short-filtername+"_"+filter property+"To". 
<pre>// example:
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts, PennerEasing, FuseFMP);
<b>my_mc.</b><b>DropShadow_angleTo</b>("45", 2, "easeOutElastic");
 
Bevel_angleTo
Bevel_blurTo
Bevel_blurXTo
Bevel_blurYTo
Bevel_distanceTo
Bevel_highlightAlphaTo
Bevel_shadowAlphaTo
Bevel_strengthTo
Blur_blurTo
Blur_blurXTo
Blur_blurYTo
Convolution_alphaTo
Convolution_colorTo
DisplacementMap_alphaTo
DisplacementMap_colorTo
DropShadow_alphaTo
DropShadow_angleTo
DropShadow_blurTo
DropShadow_blurXTo
DropShadow_blurYTo
DropShadow_colorTo
DropShadow_distanceTo
DropShadow_strengthTo
Glow_alphaTo
Glow_blurTo
Glow_blurXTo
Glow_blurYTo
Glow_colorTo
Glow_strengthTo
GradientBevel_angleTo
GradientBevel_blurTo
GradientBevel_blurXTo
GradientBevel_blurYTo
GradientBevel_distanceTo
GradientBevel_strengthTo
GradientGlow_angleTo
GradientGlow_blurTo
GradientGlow_blurXTo
GradientGlow_blurYTo
GradientGlow_distanceTo
GradientGlow_strengthTo</pre> <br> <br> <h3>FuseFMP Shortcut Methods </h3>(see similar methods in <a href="../../../com/mosesSupposes/fuse/FuseFMP.html">FuseFMP</a> for additional info.) <pre>target.<b>getFilterName</b>(instance:BitmapFilter);
target.<b>getFilterIndex</b>(filter:Object);
target.<b>getFilter</b>(filter:Object, createNew:Boolean);
target.<b>writeFilter</b>(filter:Object, propsObj:Object);
target.<b>removeFilter</b>(filter:Object);
target.<b>getFilterProp</b>(propname:String, createNew:Boolean);
target.<b>setFilterProp</b>(propname:Object, value:Object);
target.<b>setFilterProps</b>(filterOrPropsObj:Object, propsObj:Object);
target.<b>traceAllFilters</b>();
</pre> <br> <br> <h3>FuseFMP Shortcut Properties: Blur_blurX, etc.  </h3><a href="../../../com/mosesSupposes/fuse/FuseFMP.html">FuseFMP</a> property formatting follows the convention: short-filtername+"_"+filter property.  <br>Example with <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#register">ZigoEngine.register</a> (see <a href="../../../com/mosesSupposes/fuse/FuseFMP.html">FuseFMP</a> for more info): <pre>import com.mosesSupposes.fuse.*;
import mx.transitions.easing.Elastic;
ZigoEngine.register(Shortcuts, FuseFMP);
ZigoEngine.doTween(my_mc, <b>"DropShadow_angle"</b>, "45", 2, Elastic.easeOut);
 </pre>If <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#simpleSetup">ZigoEngine.simpleSetup</a> is used you may also get/set properties directly on a target: <pre><b>my_mc.</b><b>DropShadow_angle</b> = 105; </pre>(Note that this is an optional feature of <a href="../../../com/mosesSupposes/fuse/FuseFMP.html">FuseFMP</a> that may be used without ZigoEngine.) <br>
<pre>Bevel_type
Bevel_blurY
Bevel_blurX
Bevel_blur
Bevel_knockout
Bevel_strength
Bevel_quality
Bevel_shadowAlpha
Bevel_shadowColor
Bevel_highlightAlpha
Bevel_highlightColor
Bevel_angle
Bevel_distance
Blur_quality
Blur_blurY
Blur_blurX
Blur_blur
ColorMatrix_matrix
Convolution_alpha
Convolution_color
Convolution_clamp
Convolution_preserveAlpha
Convolution_bias
Convolution_divisor
Convolution_matrix
Convolution_matrixY
Convolution_matrixX
DisplacementMap_alpha
DisplacementMap_color
DisplacementMap_mode
DisplacementMap_scaleY
DisplacementMap_scaleX
DisplacementMap_componentY
DisplacementMap_componentX
DisplacementMap_mapPoint
DisplacementMap_mapBitmap
DropShadow_hideObject
DropShadow_strength
DropShadow_blurY
DropShadow_blurX
DropShadow_blur
DropShadow_knockout
DropShadow_inner
DropShadow_quality
DropShadow_alpha
DropShadow_color
DropShadow_angle
DropShadow_distance
Glow_strength
Glow_blurY
Glow_blurX
Glow_blur
Glow_knockout
Glow_inner
Glow_quality
Glow_alpha
Glow_color
GradientBevel_type
GradientBevel_knockout
GradientBevel_strength
GradientBevel_quality
GradientBevel_blurY
GradientBevel_blurX
GradientBevel_blur
GradientBevel_ratios
GradientBevel_alphas
GradientBevel_colors
GradientBevel_angle
GradientBevel_distance
GradientGlow_type
GradientGlow_knockout
GradientGlow_strength
GradientGlow_quality
GradientGlow_blurY
GradientGlow_blurX
GradientGlow_blur
GradientGlow_ratios
GradientGlow_alphas
GradientGlow_colors
GradientGlow_angle
GradientGlow_distance
 </pre><i>Methods and properties of this class are excluded here - see class file for further documentation.</i></div> </dd>
</dl>
<p></p>
<br>
<dl compact> <dt><b>Auteur:</b><br> </dt> <dd> <div class="comment">Moses Gunesch / MosesSupposes.com (shortcut syntax created by Zeh Fernando, Ladislav Zigo, others) </div> </dd>
</dl>
<p></p>
<dl compact> <dt><b>Version:</b></dt> <dd> <div class="comment">2.1 </div> </dd>
</dl>
<p></p>
<hr size="1">
<p></p>The documentation was generated from the following file:<br>
<ul> <li>Shortcuts.as, Last Modified: 1/2/2007 8:12:30 PM
</li>
</ul>
<p></p>
<hr size="1">
</body>
</html><span class="footer">G&eacute;n&eacute;r&eacute;e le 1/14/2007 11:31:53 PM</span>
